package com.tujh.android.designpatterns.Prototype;

/**
 * Created by TUJH on 2016/10/25.
 */
public class Student implements Cloneable {

    private String studentName;
    private int studentNum;

    public Student(String studentName, int studentNum) {
        this.studentName = studentName;
        this.studentNum = studentNum;
    }

    public String getStudentName() {
        return studentName;
    }

    public void setStudentName(String studentName) {
        this.studentName = studentName;
    }

    public int getStudentNum() {
        return studentNum;
    }

    public void setStudentNum(int studentNum) {
        this.studentNum = studentNum;
    }

    @Override
    public Object clone() {
        try {
            return super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return null;
    }
}
